package com.tangji.signaltower.bean;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: Amarendar
 * Date: 2020/6/15
 * Time: 下午6:21
 */
public class MarketDataEntity implements Serializable {

    private static final long serialVersionUID = 1248382496769534659L;

    private String type;

    private String marketPrice;

    private Long marketTimestamp;
    /**
     *业务时间戳(秒)
     */
    private Long businessTime;
    /**
     * 1-真实行情 2-按秒补录行情
     */
    private Integer realType=1;

    public MarketDataEntity() {
    }

    public MarketDataEntity(String type, String marketPrice, Long marketTimestamp, Long businessTime) {
        this.type = type;
        this.marketPrice = marketPrice;
        this.marketTimestamp = marketTimestamp;
        this.businessTime = businessTime;
        this.realType = 1;
    }

    public MarketDataEntity(String type, String marketPrice, Long marketTimestamp, Long businessTime, Integer realType) {
        this.type = type;
        this.marketPrice = marketPrice;
        this.marketTimestamp = marketTimestamp;
        this.businessTime = businessTime;
        this.realType = realType;
    }

    public String getType() {
        return type;
    }

    public MarketDataEntity setType(String type) {
        this.type = type;
        return this;
    }

    public String getMarketPrice() {
        return marketPrice;
    }

    public MarketDataEntity setMarketPrice(String marketPrice) {
        this.marketPrice = marketPrice;
        return this;
    }

    public Long getMarketTimestamp() {
        return marketTimestamp;
    }

    public MarketDataEntity setMarketTimestamp(Long marketTimestamp) {
        this.marketTimestamp = marketTimestamp;
        return this;
    }

    public Long getBusinessTime() {
        return businessTime;
    }


    public MarketDataEntity setBusinessTime(Long businessTime) {
        this.businessTime = businessTime;
        return this;
    }

    public Integer getRealType() {
        return realType;
    }

    public MarketDataEntity setRealType(Integer realType) {
        this.realType = realType;
        return this;
    }
}
